<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
<script type="text/javascript">
function validate()
{

if(form.t1.value=="")
{
alert("name is Required");
form.t1.focus();
form.t1.value="";
return false;
}
var a=/^[a-zA-Z]+$/;
if(!form.t1.value.match(a))
{
alert("charactor only");
form.t1.value=="";
form.t1.focus();
return false;
}
 if(form.t2.value=="")
{
alert("Age is Required");
form.t2.focus();
form.t2.value="";
return false;
} 
var a=/^[0-9]+$/;
if(!form.t2.value.match(a))
{
alert("enter only numbers");
form.t2.focus();
form.t2.value="";
return false;
}
if(form.t3.value=="")
{
alert("Mailid is Required");
form.t3.focus();
form.t3.value="";
return false;
} 
var a=/^[\w\_\.\+]+\@[a-zA-Z0-9\.\_]+\.[a-zA-Z0-9]{2,4}$/;
if(!form.t3.value.match(a))
{
alert("enter valid emailid");
form.t3.value=="";
form.t3.focus();
return false;
}
if(form.t4.value=="")
{
alert("Date of birth is Required");
form.t4.focus();
form.t4.value="";
return false;
}  

 if(form.t5.value=="")
{
alert("Hight is Required");
form.t5.focus();
form.t5.value="";
return false;
}
if(form.t6.value=="")
{
alert("Occupation is Required");
form.t6.focus();
form.t6.value="";
return false;
}if(form.t7.value=="")
{
alert("Address is Required");
form.t7.focus();
form.t7.value="";
return false;
}
 if(form.t9.value=="")
{
alert("Contact name is Required");
form.t9.focus();
form.t9.value="";
return false;
}

var a=/^[0-9]+$/;
if(!form.t9.value.match(a))
{
alert("enter only numbers");
form.t9.focus();
form.t9.value="";
return false;
}
return true;
}
</script>

<TITLE></TITLE>
</HEAD>
<BODY background="images/17.jpg">
<form action="matri.jsp" method="post" name="form" onsubmit="return validate()"><br>
  <H1 align=center><FONT color=yellow size=4>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
Wel come To <FONT color=yellow>Matrimonial </FONT>    </FONT>
<TABLE border=0 cellPadding=1 cellSpacing=1 style="HEIGHT: 441px; WIDTH: 452px" 
width="72%"><br>
  
  <TR>
    <TD width="37%"><STRONG>Name</STRONG></TD>
    <TD width="63%"><INPUT id=text2 name=t1></TD></TR>
  <TR>
    <TD><STRONG>Age</STRONG></TD>
    <TD><INPUT id=text1 name=t2></TD></TR>
  <TR>
    <TD><STRONG>Mail ID</STRONG></TD>
    <TD><INPUT id=text3 name=t3></TD></TR>
  <TR>
    <TD><STRONG>Gender</STRONG></TD>
    <TD><SELECT id=select1 name=select1 
      style="HEIGHT: 22px; WIDTH: 89px"> <OPTION selected 
        value=Male>Male</OPTION><OPTION 
value=Female>Female</OPTION></SELECT></TD></TR>
  <TR>
    <TD><STRONG>Realigion</STRONG></TD>
    <TD><SELECT id=select2 name=select2 
      style="HEIGHT: 22px; WIDTH: 89px"> <OPTION selected 
        value=Hindu>Hindu</OPTION><OPTION value=Muslim>Muslim</OPTION><OPTION 
        value=Christian>Christian</OPTION><OPTION 
      value=Others>Others</OPTION></SELECT></TD></TR>
  <TR>
    <TD><STRONG>Marital Status</STRONG></TD>
    <TD><SELECT id=select3 name=select3 
      style="HEIGHT: 22px; WIDTH: 89px"> <OPTION selected 
        value=Married>Married</OPTION><OPTION value="Un Married">Un 
        Married</OPTION></SELECT></TD></TR>
  <TR>
    <TD><STRONG>Date of Birth</STRONG></TD>
    <TD><INPUT id=text8 name=t4>(dd/mm/yyyy)</TD></TR>
  <TR>
    <TD><STRONG>Height</STRONG></TD>
    <TD><INPUT id=text8 name=t5>(ex:5.7) 
      </TD></TR>

  <TR>
    <TD><STRONG>Occupation</STRONG></TD>
    <TD><INPUT id=text8 name=t6></TD></TR>
<!--  <TR>
    <TD><STRONG>Occupation</STRONG></TD>
    <TD><INPUT id=text9 name="occu"></TD></TR>-->
  <TR>
    <TD><STRONG>Address</STRONG></TD>
    <TD><TEXTAREA id=TEXTAREA1 name=t7 style="HEIGHT: 38px; WIDTH: 154px"></TEXTAREA></TD></TR>
  <TR>
    <TD><STRONG>Country</STRONG></TD>
    <TD>
	<select name=t8>
	<option>India</option>
		<option>Pakisthan</option>
<option>China</option>
<option>America</option>
	</select>
	
</TD></TR>
  <TR>
    <TD><STRONG>Qualification</STRONG></TD>
    <TD><SELECT id=select4 name=select4 
      style="HEIGHT: 22px; WIDTH: 90px"> <OPTION selected 
        value=MCA>MCA</OPTION><OPTION value=MTech>MTech</OPTION><OPTION 
        value=MS>MS</OPTION><OPTION value=BTech>BTech</OPTION><OPTION 
        value=Others>Others</OPTION><OPTION value=""></OPTION></SELECT></TD></TR>
  <TR>
    <TD><STRONG>Phone Number</STRONG></TD>
    <TD><INPUT id=text13 name=t9 maxlenth="10">(max 8 digits)</TD></TR>
  <TR>
    
    <TD height="28" colspan="2" align="center">      
      &nbsp;&nbsp; <INPUT id=submit1 name=submit1 style="BACKGROUND-COLOR: floralwhite" type=submit value="  Add  ">&nbsp;&nbsp;&nbsp;&nbsp; 
<INPUT id=reset1 name=reset1  type=reset value=Reset></TD></TR></TABLE></H1>
</form>

</BODY>
</HTML>
